$OpenBSD: patch-decoders_py,v 1.1.1.1 2011/07/20 07:54:58 dcoppa Exp $
--- decoders.py.orig	Mon Jul 11 11:38:30 2011
+++ decoders.py	Mon Jul 11 11:42:12 2011
@@ -27,17 +27,17 @@ import os
 
 # To use any of the command lines, append a filename as the last argument.
 decoders = {
-    'flac': ("/usr/bin/flac", "-d", "-c", "--totally-silent"),
-    'mp3': ("/usr/bin/mpg123", "-s", "-q"),
-    'ogg': ("/usr/bin/oggdec", "-Q", "-o", "-"),
-    'm4a': ("/usr/bin/faad", "-w", "-q"),
+    'flac': ("${LOCALBASE}/bin/flac", "-d", "-c", "--totally-silent"),
+    'mp3': ("${LOCALBASE}/bin/mpg123", "-s", "-q"),
+    'ogg': ("${LOCALBASE}/bin/oggdec", "-Q", "-o", "-"),
+    'm4a': ("${LOCALBASE}/bin/faad", "-w", "-q"),
     }
 
 decoder_messages = {
-    'flac': "/usr/bin/flac not found. Please install 'flac' to play .flac files.",
-    'mp3': "/usr/bin/mpg123 not found. Please install 'mpg123' to play .mp3 files.",
-    'ogg': "/usr/bin/oggdec not found. Please install 'vorbis-tools' to play .ogg files.",
-    'm4a': "/usr/bin/faad not found. Please install 'faad' to play .m4a files.",
+    'flac': "${LOCALBASE}/bin/flac not found. Please install 'flac' to play .flac files.",
+    'mp3': "${LOCALBASE}/bin/mpg123 not found. Please install 'mpg123' to play .mp3 files.",
+    'ogg': "${LOCALBASE}/bin/oggdec not found. Please install 'vorbis-tools' to play .ogg files.",
+    'm4a': "${LOCALBASE}/bin/faad not found. Please install 'faad' to play .m4a files.",
     }
 
 # The set of extensions for which we've warned the user that the decoder is not
